import Vue from "vue";
import App from "./App";
import store from "@/store";

import { router, RouterMount } from "./router";
Vue.use(router);

import config from "./config";
import { upload } from "@/libs/upload";
import { playBgAudio } from '@/libs/play.js'

import uView from "uview-ui";
Vue.use(uView);

import "./permission"; // permission control

Vue.prototype.$config = config;
Vue.prototype.$store = store;
Vue.prototype.$upload = upload;
Vue.prototype.$playBgAudio = playBgAudio
Vue.config.productionTip = false;

App.mpType = "app";

const app = new Vue({
  store,
  ...App,
});
app.$mount();
